package sdufe.lele.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import sdufe.lele.model.Article;

import java.util.List;

@Repository
@Mapper
public interface ArticleMapper {

    @Select("select * from article")
    List<Article> get_article();

    @Select("select count(*) from  article")
    int countAll();
}
